package com.sg.dto.integration.component;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc CollectionsIntersectionsDataDto
 * @使用场景
 */
@Data
public class CollectionsIntersectionsDataDto
        extends BaseDto
        implements Serializable {

    /**
     * 自定义字段
     */
    @ApiModelProperty("自定义字段")
    private String customField;

    /**
     * 通用文本字段
     */
    @ApiModelProperty("通用文本字段")
    private String comTxtField;

    /**
     * 自定义字段1
     */
    @ApiModelProperty("自定义字段1")
    private String customField1;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CollectionsIntersectionsDataDto that = (CollectionsIntersectionsDataDto) o;
        return (
                customField == that.customField &&
                        comTxtField == that.comTxtField &&
                        customField1 == that.customField1
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                customField,
                comTxtField,
                customField1
        );
    }

}
